import request from "@/config/utils/request";
import { loadingParams, pageLoadingParams } from "@/basa/utils/public";

// 列表查询
export function getList(data) {
  return request({
    url: "/apis/smp/smptransportconc/listSmpTransportConcEffectPage",
    method: "POST",
    data: { ...data, ...pageLoadingParams },
  });
}

// 新增-生效合同
export function saveSmpTakeEffect(data) {
  return request({
    url: "/apis/smp/smptransportconc/saveSmpTransportTakeEffect",
    method: "POST",
    data: { ...data, ...loadingParams },
  });
}

// 修改-生效合同
export function editSmpTakeEffect(data) {
  return request({
    url: "/apis/smp/smptransportconc/editSmpTransportTakeEffect",
    method: "POST",
    data: { ...data, ...loadingParams },
  });
}

// 查询合同包含生效日期
export function listSmpPcConcForCheck(data) {
  return request({
    url: "/apis/smp/smppcconc/listSmpPcConcForCheck",
    method: "POST",
    data: { ...data, ...loadingParams },
  });
}
